/**
 * security panel builed the all security handle ---
 */
Ext.define('vsg.security.Panel', {
    extend: 'Ext.panel.Panel',
	requires: [
		'vsg.security.StrategyHandler'
	],	
    initComponent: function() {

       	var strategyHandler = Ext.create("vsg.security.StrategyHandler" );

       	// --- load from object file ---
       	var userSecData = Ext.create("vsg.security.UserDataManager");

       	if ( userSecData == null) {
       		strategyHandler.setUserSecurity({});
       	} else {
       		strategyHandler.setUserSecurity(userSecData.getUserData() );
       	}


        var me = this;

        me.callParent(arguments);
        

        var array = me.query("component[seccomp]");
        
        // --- get secrity configration url ---
        
        
        // --- create securty fileds
        for (var i = 0 ; i < array.length ; i++) {
        	var comp = array[i];

        	strategyHandler.permittedHandle(comp);
        }

	}
});